<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>YuTori Class: test/tests/factory.php ソースファイル</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- 作成： Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'検索');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">YuTori Class</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>メインページ</span></a></li>
      <li><a href="../../pages.html"><span>関連ページ</span></a></li>
      <li><a href="../../annotated.html"><span>データ構造</span></a></li>
      <li class="current"><a href="../../files.html"><span>ファイル</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="検索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>ファイル一覧</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">test/tests/factory.php</div>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 &lt;?php
<a name="l00007"></a>00007 <span class="keyword">class </span><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html">TestofYuToriFactory</a> <span class="keyword">extends</span> UnitTestCase {
<a name="l00008"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a095c5d389db211932136b53f25f39685">00008</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a095c5d389db211932136b53f25f39685">__construct</a> () {
<a name="l00009"></a>00009         }
<a name="l00010"></a>00010 
<a name="l00011"></a>00011         <span class="comment">// 試験汎用</span>
<a name="l00012"></a>00012         <span class="comment">// 第1引数のみ指定</span>
<a name="l00013"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">00013</a>         <span class="keyword">private</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($value, $type) {
<a name="l00014"></a>00014                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value);
<a name="l00015"></a>00015                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00016"></a>00016                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00017"></a>00017                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00018"></a>00018                 $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00019"></a>00019                 $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00020"></a>00020         }
<a name="l00021"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">00021</a>         <span class="keyword">private</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($value, $type, $instance) {
<a name="l00022"></a>00022                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value);
<a name="l00023"></a>00023                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00024"></a>00024                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00025"></a>00025                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;&#39;</span>, <span class="stringliteral">&#39;セレクタ判定 &#39;</span>);
<a name="l00026"></a>00026                 $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00027"></a>00027                 $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00028"></a>00028         }
<a name="l00029"></a>00029 
<a name="l00030"></a>00030         <span class="comment">// 第2引数まで指定</span>
<a name="l00031"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">00031</a>         <span class="keyword">private</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($value, $type) {
<a name="l00032"></a>00032                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00033"></a>00033                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00034"></a>00034                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00035"></a>00035                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00036"></a>00036                 $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00037"></a>00037                 $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00038"></a>00038         }
<a name="l00039"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">00039</a>         <span class="keyword">private</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($value, $type, $instance) {
<a name="l00040"></a>00040                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value);
<a name="l00041"></a>00041                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00042"></a>00042                 $this-&gt;assertIdentical($res = $y-&gt;getName() , $value-&gt;getName(), <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00043"></a>00043                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , $value-&gt;getSelector(), <span class="stringliteral">&#39;セレクタ判定 &#39;</span>);
<a name="l00044"></a>00044                 $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00045"></a>00045                 $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00046"></a>00046         }
<a name="l00047"></a>00047 
<a name="l00048"></a>00048         <span class="comment">// 第3引数まで指定</span>
<a name="l00049"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">00049</a>         <span class="keyword">private</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> ($value, $type) {
<a name="l00050"></a>00050                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value, <span class="stringliteral">&#39;testName&#39;</span>, array(0,1,2));
<a name="l00051"></a>00051                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00052"></a>00052                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00053"></a>00053                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00054"></a>00054                 $this-&gt;assertIdentical($res = $y-&gt;get() , $value, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00055"></a>00055                 $this-&gt;assertIdentical($res = $y-&gt;call() , $value, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00056"></a>00056                 $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
<a name="l00057"></a>00057         }
<a name="l00058"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">00058</a>         <span class="keyword">private</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($value, $type, $instance) {
<a name="l00059"></a>00059                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($value, null, array(0,1,2));
<a name="l00060"></a>00060                 $this-&gt;assertIdentical($res = $y-&gt;getType() , $type, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00061"></a>00061                 $this-&gt;assertIdentical($res = $y-&gt;getName() , $value-&gt;getName(), <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00062"></a>00062                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , $value-&gt;getSelector(), <span class="stringliteral">&#39;セレクタ判定 &#39;</span>);
<a name="l00063"></a>00063                 $this-&gt;assertIdentical($res = $y-&gt;get() , $instance, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00064"></a>00064                 $this-&gt;assertIdentical($res = $y-&gt;call() , $instance, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00065"></a>00065                 $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
<a name="l00066"></a>00066         }
<a name="l00067"></a>00067 
<a name="l00068"></a>00068         <span class="comment">// TYPE_SCALAR</span>
<a name="l00069"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#adbac3f4e879c7c1ad0b8c9fb14aa1706">00069</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#adbac3f4e879c7c1ad0b8c9fb14aa1706">TestofScalar</a>() {
<a name="l00070"></a>00070                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00071"></a>00071                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00072"></a>00072                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (<span class="stringliteral">&#39;Test&#39;</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00073"></a>00073                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00074"></a>00074                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00075"></a>00075                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (1, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>);
<a name="l00076"></a>00076         }
<a name="l00077"></a>00077 
<a name="l00078"></a>00078         <span class="comment">// TYPE_BOOL</span>
<a name="l00079"></a>00079         <span class="comment">// booleanは２つしかないのでどっちも試験する。</span>
<a name="l00080"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acbe20062b60c33376c0c388e90640b93">00080</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acbe20062b60c33376c0c388e90640b93">TestofBool</a>() {
<a name="l00081"></a>00081                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00082"></a>00082                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00083"></a>00083                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (<span class="keyword">true</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00084"></a>00084                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00085"></a>00085                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00086"></a>00086                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (<span class="keyword">false</span>, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>);
<a name="l00087"></a>00087         }
<a name="l00088"></a>00088 
<a name="l00089"></a>00089         <span class="comment">// TYPE_NULL</span>
<a name="l00090"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a2e3b4fbe4dc05a568de62a8b5ff93236">00090</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a2e3b4fbe4dc05a568de62a8b5ff93236">TestofNull</a>() {
<a name="l00091"></a>00091                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
<a name="l00092"></a>00092                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
<a name="l00093"></a>00093                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> (null, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>);
<a name="l00094"></a>00094         }
<a name="l00095"></a>00095 
<a name="l00096"></a>00096         <span class="comment">// TYPE_ARRAY</span>
<a name="l00097"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#aafa177430173d414e73d0c9716343609">00097</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#aafa177430173d414e73d0c9716343609">TestofArray</a>() {
<a name="l00098"></a>00098                 $arr = array(0,1,2);
<a name="l00099"></a>00099                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00100"></a>00100                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00101"></a>00101 
<a name="l00102"></a>00102                 <span class="comment">// 連想配列の場合</span>
<a name="l00103"></a>00103                 $arr = array(<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>, <span class="charliteral">&#39;b&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, <span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;sugar&#39;</span>);
<a name="l00104"></a>00104                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00105"></a>00105                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 
<a name="l00108"></a>00108                 <span class="comment">// 二次元配列の場合</span>
<a name="l00109"></a>00109                 $arr = array(array(0,1,2),array(<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>, <span class="charliteral">&#39;b&#39;</span>=&gt;<span class="stringliteral">&#39;orage&#39;</span>),2);
<a name="l00110"></a>00110                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00111"></a>00111                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($arr, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>);
<a name="l00112"></a>00112                 
<a name="l00113"></a>00113                 <span class="comment">// 第三引数は共通化できないので個別で。</span>
<a name="l00114"></a>00114                 $arr = array(0,1,2);
<a name="l00115"></a>00115                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($arr, <span class="stringliteral">&#39;testName&#39;</span>, $arr);
<a name="l00116"></a>00116                 $this-&gt;assertIdentical($res = $y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00117"></a>00117                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00118"></a>00118                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00119"></a>00119                 $this-&gt;assertIdentical($res = $y-&gt;count() , 6, <span class="stringliteral">&#39;child数判定&#39;</span>);
<a name="l00120"></a>00120                 $this-&gt;assertIdentical($res = $y-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00121"></a>00121                 $this-&gt;assertIdentical($res = $y-&gt;call() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00122"></a>00122                 $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
<a name="l00123"></a>00123 
<a name="l00124"></a>00124                 $arr1 = array(0,1,2, <span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>);
<a name="l00125"></a>00125                 $arr2 = array(0,1,2, <span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, <span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>);
<a name="l00126"></a>00126                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($arr1, <span class="stringliteral">&#39;testName&#39;</span>, $arr2);
<a name="l00127"></a>00127                 $this-&gt;assertIdentical($res = $y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00128"></a>00128                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00129"></a>00129                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00130"></a>00130                 $this-&gt;assertIdentical($res = $y-&gt;count() , 9, <span class="stringliteral">&#39;child数判定&#39;</span>);
<a name="l00131"></a>00131                 $this-&gt;assertIdentical($res = $y-&gt;get() , array(0,1,2,<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, 0,1,2, <span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>), <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00132"></a>00132                 $this-&gt;assertIdentical($res = $y-&gt;call() , array(0,1,2,<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>, 0,1,2,<span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>), <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00133"></a>00133                 $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2,<span class="charliteral">&#39;a&#39;</span>=&gt;<span class="stringliteral">&#39;orange&#39;</span>,0,1,2,<span class="charliteral">&#39;c&#39;</span>=&gt;<span class="stringliteral">&#39;apple&#39;</span>), <span class="stringliteral">&#39;child判定&#39;</span>.print_r($res, 1));
<a name="l00134"></a>00134         }
<a name="l00135"></a>00135         <span class="comment">// TYPE_OBJECT</span>
<a name="l00136"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#aaf0ee24f84ac96485d62782ff7620fb0">00136</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#aaf0ee24f84ac96485d62782ff7620fb0">TestofObject</a>() {
<a name="l00137"></a>00137                 $obj = <span class="keyword">new</span> stdClass();
<a name="l00138"></a>00138                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4a3e53ed5866f9d3479eed7774cb2b18">_CommonTest_01</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
<a name="l00139"></a>00139                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4b839704e38ef5d56d64a49a5faaab02">_CommonTest_02</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
<a name="l00140"></a>00140                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#acb5445c49069ad399abe2d10f430cad3">_CommonTest_03</a> ($obj, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>);
<a name="l00141"></a>00141         }
<a name="l00142"></a>00142 
<a name="l00143"></a>00143         <span class="comment">// TYPE_CALLABLE</span>
<a name="l00144"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a631e5d3719fa622ec7d4931355369ea5">00144</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a631e5d3719fa622ec7d4931355369ea5">TestofCallable</a>() {
<a name="l00145"></a>00145                 <span class="comment">// 第四引数指定から開始</span>
<a name="l00146"></a>00146                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;myFunc&#39;</span>, <span class="stringliteral">&#39;myFuncName&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00147"></a>00147                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00148"></a>00148                 $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00149"></a>00149                 $this-&gt;assertIdentical($y-&gt;getSelector() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00150"></a>00150                 $this-&gt;assertIdentical($y-&gt;get() , <span class="stringliteral">&#39;myFunc&#39;</span>, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00151"></a>00151                 $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;Func!&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00152"></a>00152 
<a name="l00153"></a>00153                 <span class="comment">// メソッドの時</span>
<a name="l00154"></a>00154                 $func = array(<span class="keyword">new</span> <a class="code" href="../../d5/d45/classmy_class.html">myClass</a>(), <span class="stringliteral">&#39;func&#39;</span>);
<a name="l00155"></a>00155                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($func, <span class="stringliteral">&#39;myFuncName&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00156"></a>00156                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00157"></a>00157                 $this-&gt;assertIdentical($y-&gt;getName() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00158"></a>00158                 $this-&gt;assertIdentical($y-&gt;getSelector() , <span class="stringliteral">&#39;myFuncName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00159"></a>00159                 $this-&gt;assertTrue($y-&gt;get() == $func , <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00160"></a>00160                 $this-&gt;assertIdentical($y-&gt;call() , <span class="stringliteral">&#39;Method!&#39;</span>, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00161"></a>00161 
<a name="l00162"></a>00162                 <span class="comment">// 存在しない関数</span>
<a name="l00163"></a>00163                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;myFunc2&#39;</span>, <span class="stringliteral">&#39;myFuncName2&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00164"></a>00164                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00165"></a>00165                 $this-&gt;assertIdentical($y-&gt;getName() , null, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00166"></a>00166                 $this-&gt;assertIdentical($y-&gt;getSelector() , null, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00167"></a>00167                 $this-&gt;assertIdentical($y-&gt;get() , null, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00168"></a>00168                 $this-&gt;assertIdentical($y-&gt;call() , null, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00169"></a>00169                 $this-&gt;assertTrue($y-&gt;isEmpty(), <span class="stringliteral">&#39;isEmpty値判定&#39;</span>);
<a name="l00170"></a>00170 
<a name="l00171"></a>00171                 <span class="comment">// 存在しないメソッド</span>
<a name="l00172"></a>00172                 $func = array(<span class="keyword">new</span> <a class="code" href="../../d5/d45/classmy_class.html">myClass</a>(), <span class="stringliteral">&#39;func2&#39;</span>);
<a name="l00173"></a>00173                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($func, <span class="stringliteral">&#39;myFuncName&#39;</span>, array(), <a class="code" href="../../d0/dfd/class_yu_tori.html#a0a2c1f3ba4b81c0938122ff4e88764f8">YuTori::TYPE_CALLABLE</a>);
<a name="l00174"></a>00174                 $this-&gt;assertIdentical($y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a3f11f6ed0d9e135ce0fd44b214bc20d5">YuTori::TYPE_EMPTY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00175"></a>00175                 $this-&gt;assertIdentical($y-&gt;getName() , null, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00176"></a>00176                 $this-&gt;assertIdentical($y-&gt;getSelector() , null, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00177"></a>00177                 $this-&gt;assertIdentical($y-&gt;get() , null, <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00178"></a>00178                 $this-&gt;assertIdentical($y-&gt;call() , null, <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00179"></a>00179                 $this-&gt;assertTrue($y-&gt;isEmpty(), <span class="stringliteral">&#39;isEmpty値判定&#39;</span>);
<a name="l00180"></a>00180         }
<a name="l00181"></a>00181 
<a name="l00182"></a>00182         <span class="comment">// TYPE_FILE </span>
<a name="l00183"></a>00183 
<a name="l00184"></a>00184         <span class="comment">// TYPE_YuToriObject</span>
<a name="l00185"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#ab4c436dc23938f6013cdf23c7412f85a">00185</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#ab4c436dc23938f6013cdf23c7412f85a">TestofY_Scalar</a>() {
<a name="l00186"></a>00186                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>);
<a name="l00187"></a>00187                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);
<a name="l00188"></a>00188 
<a name="l00189"></a>00189                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00190"></a>00190                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);
<a name="l00191"></a>00191 
<a name="l00192"></a>00192                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="stringliteral">&#39;test&#39;</span>, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00193"></a>00193                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a40e11b5ee4ea95b924f0c0b6d37809dc">YuTori::TYPE_SCALAR</a>, <span class="stringliteral">&#39;test&#39;</span>);
<a name="l00194"></a>00194         }
<a name="l00195"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a09ec4d72fa0f23b2e2f5ed9ae99cb2a2">00195</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a09ec4d72fa0f23b2e2f5ed9ae99cb2a2">TestofY_Bool</a>() {
<a name="l00196"></a>00196                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>);
<a name="l00197"></a>00197                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);
<a name="l00198"></a>00198 
<a name="l00199"></a>00199                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00200"></a>00200                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);
<a name="l00201"></a>00201 
<a name="l00202"></a>00202                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">true</span>, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00203"></a>00203                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2008e61ac981f88cf7a8218c600077f5">YuTori::TYPE_BOOL</a>, <span class="keyword">true</span>);
<a name="l00204"></a>00204         }
<a name="l00205"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4f789c08771e5bea31cb0daf0d26e9ee">00205</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a4f789c08771e5bea31cb0daf0d26e9ee">TestofY_Null</a>() {
<a name="l00206"></a>00206                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null);
<a name="l00207"></a>00207                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);
<a name="l00208"></a>00208 
<a name="l00209"></a>00209                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00210"></a>00210                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);
<a name="l00211"></a>00211 
<a name="l00212"></a>00212                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(null, <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00213"></a>00213                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a5e1f66f767bfb7293469d627772da2bb">YuTori::TYPE_NULL</a>, null);
<a name="l00214"></a>00214         }
<a name="l00215"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a1d6b3a57ecf0640eb020de6a3c194813">00215</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a1d6b3a57ecf0640eb020de6a3c194813">TestofY_Array</a>() {
<a name="l00216"></a>00216                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2));
<a name="l00217"></a>00217                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, array(0,1,2));
<a name="l00218"></a>00218 
<a name="l00219"></a>00219                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2), <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00220"></a>00220                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, array(0,1,2));
<a name="l00221"></a>00221 
<a name="l00222"></a>00222                 <span class="comment">// 第三引数は共通化できないので個別で。</span>
<a name="l00223"></a>00223                 $obj = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(array(0,1,2),(<span class="stringliteral">&#39;testName&#39;</span>));
<a name="l00224"></a>00224                 $arr = array(0,1,2);
<a name="l00225"></a>00225                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>($obj, null, $arr);
<a name="l00226"></a>00226                 $this-&gt;assertIdentical($res = $y-&gt;getType() , <a class="code" href="../../d0/dfd/class_yu_tori.html#a11563c517f16ce832ff4fed40928a12b">YuTori::TYPE_ARRAY</a>, <span class="stringliteral">&#39;型判定&#39;</span>);
<a name="l00227"></a>00227                 $this-&gt;assertIdentical($res = $y-&gt;getName() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;名称判定&#39;</span>);
<a name="l00228"></a>00228                 $this-&gt;assertIdentical($res = $y-&gt;getSelector() , <span class="stringliteral">&#39;testName&#39;</span>, <span class="stringliteral">&#39;セレクタ判定&#39;</span>);
<a name="l00229"></a>00229                 $this-&gt;assertIdentical($res = $y-&gt;count() , 6, <span class="stringliteral">&#39;child数判定&#39;</span>);
<a name="l00230"></a>00230                 $this-&gt;assertIdentical($res = $y-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;get値判定&#39;</span>);
<a name="l00231"></a>00231                 $this-&gt;assertIdentical($res = $y-&gt;call() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;call値判定&#39;</span>);
<a name="l00232"></a>00232                 $this-&gt;assertIdentical($res = $y-&gt;child()-&gt;get() , array(0,1,2,0,1,2), <span class="stringliteral">&#39;child判定&#39;</span>);
<a name="l00233"></a>00233         }
<a name="l00234"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#aa827132b9c5ce5db3b1bf4d083e27688">00234</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#aa827132b9c5ce5db3b1bf4d083e27688">TestofY_Object</a>() {
<a name="l00235"></a>00235                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass());
<a name="l00236"></a>00236                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a980180056766a87f45df2f1b2863a090">_CommonTestY_01</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());
<a name="l00237"></a>00237 
<a name="l00238"></a>00238                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass(), <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00239"></a>00239                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a3f2f42304698f8ab69b7fa8f3aa22b7a">_CommonTestY_02</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());
<a name="l00240"></a>00240 
<a name="l00241"></a>00241                 $y = <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a>(<span class="keyword">new</span> stdClass(), <span class="stringliteral">&#39;testName&#39;</span>);
<a name="l00242"></a>00242                 $this-&gt;<a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a24505b1811f4cd9f98f12e6f2757c6eb">_CommonTestY_03</a> ($y, <a class="code" href="../../d0/dfd/class_yu_tori.html#a2365fd1fb1e6d6e994238955ce32a8ec">YuTori::TYPE_OBJECT</a>, <span class="keyword">new</span> stdClass());
<a name="l00243"></a>00243         }
<a name="l00244"></a>00244         
<a name="l00245"></a>00245         <span class="comment">// その他の試験</span>
<a name="l00246"></a>00246         <span class="comment">// 使用できない名称:this</span>
<a name="l00247"></a><a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a606efce2f14c1457cc4693bbaef105e9">00247</a>         <span class="keyword">public</span> function <a class="code" href="../../dc/db7/class_testof_yu_tori_factory.html#a606efce2f14c1457cc4693bbaef105e9">TestofNoUseName</a> () {
<a name="l00248"></a>00248                 $this-&gt;assertTrue(is_object(<a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;this&#39;</span>, <span class="stringliteral">&#39;thisSelector&#39;</span>)), <span class="stringliteral">&#39;this前後に文字がある場合は例外は発生しない&#39;</span>);
<a name="l00249"></a>00249 
<a name="l00250"></a>00250                 $this-&gt;expectException(<span class="keyword">new</span> Exception (<span class="stringliteral">&#39;YuToriObject cannot be named &quot;this&quot;&#39;</span>), <span class="stringliteral">&#39;名称にthisを指定した時の例外&#39;</span>);
<a name="l00251"></a>00251                 <a class="code" href="../../d0/dfd/class_yu_tori.html#abc5f41aad67f5f93d46b4bebbfd2ec3a">YuTori::factory</a> (<span class="stringliteral">&#39;this&#39;</span>, <span class="stringliteral">&#39;this&#39;</span>);
<a name="l00252"></a>00252         }
<a name="l00253"></a>00253 }
<a name="l00254"></a>00254 
<a name="l00255"></a>00255 function myFunc () {
<a name="l00256"></a>00256         <span class="keywordflow">return</span> <span class="stringliteral">&#39;Func!&#39;</span>;
<a name="l00257"></a>00257 }
<a name="l00258"></a>00258 
<a name="l00259"></a><a class="code" href="../../d5/d45/classmy_class.html">00259</a> <span class="keyword">class </span><a class="code" href="../../d5/d45/classmy_class.html">myClass</a> {
<a name="l00260"></a><a class="code" href="../../d5/d45/classmy_class.html#a17c6e659a89c18fa9459ec5341063fb8">00260</a>         function <a class="code" href="../../d5/d45/classmy_class.html#a17c6e659a89c18fa9459ec5341063fb8">func</a> () {
<a name="l00261"></a>00261                 <span class="keywordflow">return</span> <span class="stringliteral">&#39;Method!&#39;</span>;
<a name="l00262"></a>00262         }
<a name="l00263"></a>00263 }
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全て</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>データ構造</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>関数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>変数</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address class="footer"><small>YuTori Classに対してMon May 21 2012 00:22:16に生成されました。&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>
